#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[])
{


    for (years = 1960; years <= 2059; years++)
    {
        for (months = 1; months <= 12; months++)
        {
            for (days = 1; days <= 31; days++)
            {
                if (months == 1 || months == 3 || months == 5 || months == 7 || months == 8 || months == 10 || months == 12)
                {
                    ;
                }
                else if (months == 2)
                {
                    if (years % 4 == 0)
                    {
                        if (days > 29) break;
                    }
                    else
                    {
                        if (days > 28) break;
                    }
                }
                else
                {
                    if (days > 30) break;
                }


            }
        }
    }

    return 0;
}